package com.ziq.zcamp.bean.user

import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class UserMessageSessionList : ProguardKeep, Serializable {
    var messages :MutableList<UserMessageSession>? = null
    var count :Int? = null

    class UserMessageSession : ProguardKeep, Serializable {
        var official_account :UserMessageSessionAccount? = null
        var notice :UserMessageSessionNotice? = null
        var count :Int? = null
    }
    class UserMessageSessionAccount : ProguardKeep, Serializable {
        var id :Int? = null
        var name :String? = null
        var avatar :String? = null
        var type :Int? = null //0 普通官号 1运营官号
    }

    class UserMessageSessionNotice : ProguardKeep, Serializable {
        var content :String? = null
        var count :Int? = null
        var create_time :Long? = null
        var from_offid :Int? = null
        var id :Int? = null

        var link :MutableList<Link>? = null
        var msg_body : MsgBody? = null

        var msg_id :Int? = null
        var template_id :Int? = null
        var title :String? = null
        var update_time :Long? = null
    }

    class Link : ProguardKeep, Serializable {
        var text :String? = null
        var url :String? = null
    }

    class MsgBody : ProguardKeep, Serializable {
        var type :String? = null
        var desc :String? = null
        var url :String? = null
        var image :String? = null
        var title :String? = null
//        "desc": "测试运营消息",
//        "type": "business",
//        "url": "miecamp://?pname=CommodityBillDetail&order_id=1430008916770558192&is_user=1",
//        "image": "http://img.xizhihk.com/MTY0MTIxNDQ1ODg1MSMzNDQjanBn.jpg",
//        "title": "hhhhh123",

        /**营地解绑相关字段*/
        var del_no : String? = null
        var camp_id: Int? = null
        var camp_name: String? = null
        var uid: Int? = null
        var nick_name: String? = null
        var merchant_id: Int? = null
        var remark: String? = null
        var unbind_camp_status : Int? = null // 解绑状态 0待处理，1确认解绑，2拒绝解绑，3逾期未处理自动拒绝解绑

        /**用户上传营地审核通知相关字段*/
        var audit_result_word : String? = null
        var audit_result_status : Int? = null // 0未同意 1已同意
        var audit_time : String? = null
    }

}